import Vue from 'vue'
import VueRouter from 'vue-router'

Vue.use(VueRouter)

const routes = [
  // 全组件,自动填入后
  // {
  //   path: '/',
  //   component: () => import('@/views/Main.vue'),
  //   children: [{
  //       path: "/",
  //       name: "home",
  //       component: () => import('@/views/Home/Home.vue'),
  //     },
  //     {
  //       path: "/video",
  //       name: "video",
  //       component: () => import('@/views/VideoManage/VideoManage.vue'),
  //     },
  //     {
  //       path: "/user",
  //       name: "user",
  //       component: () => import('@/views/UserManage/UserManage.vue'),
  //     },
  //     {
  //       path: "/page1",
  //       name: "page1",
  //       component: () => import('@/views/Other/Page1.vue'),
  //     },
  //     {
  //       path: "/page2",
  //       name: "page2",
  //       component: () => import('@/views/Other/Page2.vue'),
  //     },
  //   ]
  // },
  {
    path: '/login',
    name: 'login',
    component: () => import('@/views/Login/Login')
  }
]

const router = new VueRouter({
  routes
})

export default router